﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework.Content;

using VTESCore;

namespace VTESCustomContentReaders
{
	public class CryptCardContentReader : ContentTypeReader<CryptCard>
	{
		protected override CryptCard Read( ContentReader input, CryptCard existingInstance )
		{
			CryptCard card = new CryptCard();

			card.Advanced		=		input.ReadBoolean();
			card.Artist			=		input.ReadString();
			card.Banned			=		input.ReadBoolean();
			card.BloodCapacity	=		input.ReadInt32();
			card.CardArtPath	=		input.ReadString();
			card.CardText		=		input.ReadString();
			card.CardType		=		input.ReadObject<CardType>();
			card.Clan			=		input.ReadObject<Clan>();
			card.Disciplines	=		input.ReadObject<List<Discipline>>();
			card.Group			=		input.ReadInt32();
			card.Merged			=		input.ReadBoolean();
			card.Name			=		input.ReadString();
			card.Set			=		input.ReadObject<ReleaseSet>();
			card.Title			=		input.ReadObject<Title>();

			return card;
		}
	}
}
